package com.jeesite.modules.dataScreen.web;

import com.jeesite.modules.dataScreen.service.TabTransportService;
import com.jeesite.modules.dataScreen.web.vo.FreightLogisticsVO;
import com.jeesite.modules.dataScreen.web.vo.Result;
import com.jeesite.modules.dataScreen.web.vo.tabs.TabTransportTSGVo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/tabTransport")
@Api(tags = "tab-运输服务")
public class TabTransportController {

    @Resource
    private TabTransportService tabTransportService;

    @GetMapping("/gstk")
    @ApiOperation("公水铁空")
    public Result<TabTransportTSGVo> tabTransportTSG() {
        return Result.OK(tabTransportService.getTabTransportTSG());
    }

    @GetMapping("/freightLogistics")
    @ApiOperation("货运物流")
    public Result<FreightLogisticsVO> freightLogistics() {
        return Result.OK(tabTransportService.freightLogistics());
    }
}
